//
//  WDGroMoreBADSignalManager.m
//  WDGroMore
//
//  Created by YeJary on 2025/5/19.
//

#import "WDGroMoreBADSignalManager.h"
#import "WDKeychainInfoManager.h"


@interface WDGroMoreBADSignalManager()


@end

@implementation WDGroMoreBADSignalManager

+ (WDGroMoreBADSignalManager *)shareInstance {
    static WDGroMoreBADSignalManager *_manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _manager = [[self alloc] init];
    });
    return _manager;
}

- (void)BADSignalInit {
    [BDASignalManager registerWithOptionalData:@{
            kBDADSignalSDKUserUniqueId : [[WDKeychainInfoManager manager]WDKeychainGetUUID]  // 业务用户id，非必传
        }];
}

- (void)BADSIgnalRequestIdfa:(BOOL)isIdfa {
    [BDASignalManager enableIdfa:isIdfa];
}

- (void)BADSignalDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions connectOptions:(UISceneConnectionOptions *)connetOptions  API_AVAILABLE(ios(13.0)){
    [BDASignalManager didFinishLaunchingWithOptions:launchOptions connectOptions:nil];
}

- (void)BADSignalAnylyseDeeplinkClickidWithOpenUrl:(NSURL *)url {
    NSString *openUrl = url.absoluteString;
    [BDASignalManager anylyseDeeplinkClickidWithOpenUrl:openUrl];
}

@end
